<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title></title>
    <#include "/jeecms_sys/head.html"/>
    <script type="text/javascript">
        function getTableForm() {
            return document.getElementById('tableForm');
        }
        function optDelete() {
            if(Pn.checkedCount('ids')<=0) {
                alert("<@s.m 'error.checkRecord'/>");
                return;
            }
            if(!confirm("<@s.m 'global.confirm.delete'/>")) {
                return;
            }
            var f = getTableForm();
            f.action="o_delete.do";
            f.submit();
        }
    </script>
</head>
<body>
<div class="box-positon">
    <form class="ropt">
        <input class="add" type="submit" value="<@s.m "global.add"/>" onclick="this.form.action='v_add.do';"/>
    </form>
    <div class="clear"></div>
</div>
<div class="body-box">
    <form id="tableForm" method="post">
        <input type="hidden" name="pageNo" value="${pageNo!}"/>
        <@p.table value=pagination;address,i,has_next><#rt/>
             <@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
                 <input type='checkbox' name='ids' value='${address.id}'/><#t/>
            </@p.column><#t/>
            <@p.column code="店铺">${address.shopInfo.shopName!}</@p.column><#t/>
            <@p.column code="城市">${address.city!}</@p.column><#t/>
            <@p.column code="城区">${address.district!}</@p.column><#t/>
            <@p.column code="地址">${address.address!}</@p.column><#t/>
            <@p.column code="global.operate" align="center">
                <a href="v_edit.do?id=${address.id}" class="pn-opt"><@s.m "global.edit"/></a><#rt/>
            </@p.column><#t/>
        </@p.table>
<div><input class="del-button" type="button" value="<@s.m "global.delete"/>" onclick="optDelete();"/></div>
    </form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>